﻿using System;
using System.ComponentModel.DataAnnotations;
using Data.AggregateRoot;
using Data.IdentityEntities;
using Microsoft.AspNet.Identity;

namespace Data.Entities
{
    /// <summary>
    /// 角色
    /// </summary>
    public class SysRole: AppRole
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(200)]
        [Required]
        public new string Name { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(2000)]
        public string Description { get; set; }
        /// <summary>
        /// 角色类型
        /// </summary>
        public int RoleType { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}